import time, sys, os
f = 1;
max_time = 123123123123123;
if (sys.argv[1] == '-t'):
	max_time = float(sys.argv[2]);
	f = 3;
start = time.clock();
os.system(' '.join(sys.argv[f:]));
finish = time.clock();
print((finish - start), ' seconds.');
if ((finish - start) > max_time):
	exit(1);

